package com.cdm.persistence;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * CdmLicenseAsset entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "cdm_license_asset", catalog = "cdm", uniqueConstraints = {})
public class LicenseAsset implements java.io.Serializable {

	// Fields

	private Long assetId;
	private Long dcid;
	private String digestMethod;
	private String digestValue;
	private String encryptionMethod;
	private String retrieveMethod;
	private String retrieveMethodUri;
	private String cipherData;

	// Constructors

	/** default constructor */
	public LicenseAsset() {
	}

	/** full constructor */
	public LicenseAsset(Long assetId, Long dcid, String digestMethod, String digestValue, String encryptionMethod, String retrieveMethod,
	        String retrieveMethodUri, String cipherData) {
		this.assetId = assetId;
		this.dcid = dcid;
		this.digestMethod = digestMethod;
		this.digestValue = digestValue;
		this.encryptionMethod = encryptionMethod;
		this.retrieveMethod = retrieveMethod;
		this.retrieveMethodUri = retrieveMethodUri;
		this.cipherData = cipherData;
	}

	// Property accessors
	@Id
	@Column(name = "asset_id", unique = true, nullable = false, insertable = true, updatable = true)
	public Long getAssetId() {
		return this.assetId;
	}

	public void setAssetId(Long assetId) {
		this.assetId = assetId;
	}

	@Column(name = "dcid", unique = false, nullable = false, insertable = true, updatable = true)
	public Long getDcid() {
		return this.dcid;
	}

	public void setDcid(Long dcid) {
		this.dcid = dcid;
	}

	@Column(name = "digest_method", unique = false, nullable = true, insertable = true, updatable = true, length = 500)
	public String getDigestMethod() {
		return this.digestMethod;
	}

	public void setDigestMethod(String digestMethod) {
		this.digestMethod = digestMethod;
	}

	@Column(name = "digest_value", unique = false, nullable = true, insertable = true, updatable = true, length = 1000)
	public String getDigestValue() {
		return this.digestValue;
	}

	public void setDigestValue(String digestValue) {
		this.digestValue = digestValue;
	}

	@Column(name = "encryption_method", unique = false, nullable = true, insertable = true, updatable = true, length = 500)
	public String getEncryptionMethod() {
		return this.encryptionMethod;
	}

	public void setEncryptionMethod(String encryptionMethod) {
		this.encryptionMethod = encryptionMethod;
	}

	@Column(name = "retrieve_method", unique = false, nullable = true, insertable = true, updatable = true, length = 1000)
	public String getRetrieveMethod() {
		return this.retrieveMethod;
	}

	public void setRetrieveMethod(String retrieveMethod) {
		this.retrieveMethod = retrieveMethod;
	}

	@Column(name = "retrieve_method_uri", unique = false, nullable = true, insertable = true, updatable = true, length = 1000)
	public String getRetrieveMethodUri() {
		return this.retrieveMethodUri;
	}

	public void setRetrieveMethodUri(String retrieveMethodUri) {
		this.retrieveMethodUri = retrieveMethodUri;
	}

	@Column(name = "cipher_data", unique = false, nullable = true, insertable = true, updatable = true, length = 1000)
	public String getCipherData() {
		return this.cipherData;
	}

	public void setCipherData(String cipherData) {
		this.cipherData = cipherData;
	}

}